<script lang="ts" setup>

  import { onBeforeMount } from 'vue'
  import { useRoute, useRouter } from 'vue-router'
  const route = useRoute()
  const router = useRouter()

  onBeforeMount(() => {
    const { params, query } = route
    router.replace({
      path: '/' + params.path,
      query
    })
  })

</script>

<style>

</style>